refactoring method location