improve scaling