fixed docs2history function name