made the base of controller