add function to get points from line