remove extra vars in main controller