worked on assigning users to  batches