patterning with K