update accessor and mutator for MVC