isfinite error should be gone now