in reply to print statement to avoid printing aline more than once
Usually I do something like this: