added code for DD to the kernel