implements gatheringLines