refactoring, private to public