compiling: problems, wrong scaling factor?