attempt at batching preparation