refactoring

refactoring (DRY for getters)