updated the line parsing to get the (x,y) portion