getting rid of the monad stuff