type correction