moving two methods to be private instead of public