modify /training API