calculation of transition rate now working