need to make transNew a new list containing elements of trans, corrects error in precomputed p