On mass and charge distributions in heavy ion collisions