modified things a bit to prepare figures for report