going over all records
prints all the records

just not in the right order