change refence to corecontroller