plots and codes