add global feature in training