main controller changes