added support for generics with wildcards