update and delete work