add check that update is passed