added dd2d.h