edit monad stuff with Max