method refactors