added more scaling stuff