fixed const issue on accessors