edits to updateDoc