loop now prints out just the names it finds as strings