cleaned hlearn-allknn