add structure to controller