removed ghc warnings