try to minimize fp operations, removing the scaling part
start to change towards fix-point implementation