working on batchR