update with delete function