changes while shifting mrm to php