changed haddock to include sparse