make comparator static