added autoscale-datum function.