changes in transfer matrix and height computation.