sequential interpolator not working properly