refactored functions (appended _sts to names)