tweaked scaling functions