change float to double added skeleton for distance to line