trauma functions