issue with lagrangian interpolation