main controller made