update the update procedure