corrected parameter argument for magma and removed warnings