restrict pattern