remvoed comparator, and replaced by key