wildcard matching solved