~ change plot functions so they save as pdf