update character map