added scaling