implemented and integrated calculation of the transpose