make comparison and give results to display