added stepsize to function