fix to interpolation.py