Missing mass spectra in pp inelastic scattering at total energies of 23 GeV and 31 GeV