add a routine for transition path assignment