started implementing lineGenerator functions