got working for generics