delete and update