removing unnecessary generic type