updating the controller to use the latest structure