restore gdocs function