added knodecomparator