working batchjob