add automatic scaling