updated history insert