compute overflow factor inside scale function
add missing spaces