correcting the generics