remove memcpy-copy in batch