changing some helper methods to be private