implemented Special case  ZeroCapacityStack