for making plot 4