adding option to scale to mesh or not