for making plot 2