made linspace consistent with other versions