reverted main controller