changed plots to methods