new algorithm for steering