fix transformations to work with descendent matrices