pattern formations