having a tough time finding the line beginning and end points