fixed main controller