//Sub doc update function included