clean up histories