method move refactoring