refactoring get operator