starting to fix the kdd part