added in scaling