undo refactor