ready to code refactoring