first attempt at calculating scaling