changed interp1d to interp