finish delete and update