store and print pre-batched function