needed a while true loop to loop thru the whole file