updating changes and deletions