temporary solution to generics