refactoring in Balancer