3rd pass haskell/bob: changed helper funcs to expressions