variables type correction