fixed the linspace