scale all dimenstions by the same factor to avoid distorting the model