fixing control algorithm