fixing up magnitude