it works with points on line