rendering the comparison of every consecutive pair for list comparing