rename scale factor n => scale_factor