parallelize the mag conversion calculation