helper functions in the helper