refactoring: privatize methods that don't need to be public