better history clearing