standalone method refactoring