type.c added