printing results in a neat format