warnings on generics