added set method to model