set up helper methods