update character