fixed some st. functions