using native haskell maybes and bools