modify controller structure