made changes to update in mongo