input box for pattern