line now tests for true, and we now look at items in the correct order