added calculation of trafo