adjust generics