initial control algorithm