added scaling functions