fix rounding and scaling