clean type.c