added Scale_a_matrix