added scale min/max