change idclass to idtype