proper wildcard generation