wages method refactor