update comparator and refactor to reuse harpyInfo