added batchsave