changed transform logic