path list is NaN. changing the lat lng selection method