added printout of illegal types