adding missing helper functions