middle of debugging and refactoring