updting model