trivial change
fixed bug in mag calculation