stages output analysis data and figs