attempted to include parameters for interpolation matrix. runs from start to finish but gives wrong position values