changes in the MagF constructor