set accessors to const rather than return type