kdd.tex stuff