going over all records