added some #defines to control which interpolation mode is used