Renamed transform to apply