added balancing