deleting and updating