added some writing files trying to make plot the right size