some debuging on update