added wildcards & variables for pattern matching