add pattern choice