copy function, start of history
history