rearranging for helper functions