fixed function names for helper functions