change the interface to config_trial_assign()