set method refactoring