update plots and include some code