working of controllers