changed the name of the variable being iterated over from 'a' to 'line' for clarity'