added "projectmedium" and replaced code in Interpolate with it