e to do control loops