one step of refactoring