update after delete