add the argument for pattern