adding option to scale y-axis