added some real Morse theory