update after erase