cleanup, refactoring, added center line