plots and code