modified saveFullText func