commit changes before refactoring