got the loop to correctly read, format and process the nums