newlines cleanup
small refactoring