almost finished d2d_patterns