working on update bug