small refactoring spaces and private after public