udpate model