add T_to_J (need to verify that it is correct!)