validate only when batching