remove type variable