sped up the comparators by removing a variable assignment and renamed the capital x and y to small x and y becuase I do groovy now