started working through local control algorithm