scan or select batch