adapting to new format of addDynamicVisualization