udpates to model