documentation for C and D