Seems to make more sense to have these comparators defined once, any reason why you want a different comparator defined for the different rounds (this is also where that error was coming from)