moving scoopedDataToLines functions