changing some methods to private