Code correction and cubic interpolation addition