added a batch filter