collapse of the wave function