document updating and deleting