change trait transform to new representation.