add detecting type code example