added scale setting