moved mpr method to separate file