COSMIT: same changes in transform method.