fixing generics warning