interpolation now excludes 3rd point if falls on the boundary in order to avoid duplicates