okay finally changed it to make EpsPML exactly the same code as MuinvPML, now need to combine the functions