lin and quad interpolation