seperate method set comparator