remove useless generic type