change 2 cache to batch