sleepy refactoring