add new function history, last train