changed transform method