lbalance and rbalance implemented