add check for changes on update