please add the isfinite assertion here. just to be safe