added loop through rows and displays results
need a better query