transforms and batching