added scaling that works