refactoring getter