loop through each result and display