added scping to sum_M