correcting type