balancing supply and demand