code review fixed for cache balancer