getter setter trait refactoring