added methods to set min and max scake