improved the scaling for fx