update delete method