update assignment first