mpc routine