Putting transform in right place