substitude Mag by Magnitude, more explanation on variable names