added maxtomin for score comparator