made plots with this code