remove double generic