work towards an intelligent comparisons algorithm