added scale check