Capacity and boundaries