changes to history templates and functions