changed some stuff for update assignment