removed global_weight from example