remove unused type variable