add code for plot 1