add patterns-selection
add pattern-selection