adding argument for saving plot pdfs