requirements of wave function