fixing scale factor