allow mfactor to take an array of inputs