updating 'history'