edited call to matrix_ion_populations