update the global class