massbalance problem