finalizing plots and summary statistics