added helper functions to utility