early morning refactoring