compute the magnitude correctly
0.1.1