added coloring and sorting to make it easier to find mistakes