update allowed pattern