updated arange to linspace