updated SMPC and MPC with the new indexes structure