change public to private methods
refactoring: add private methods