pattern matching in extra worksheet