clean up clean_hist check