copied code from EpsPML to MuinvPML one by one until found discrepency. Code is resolved, all I have to do is combine the functions now.