add simple segment interpolation using mode