MPM fucntion