change size and capacity to unsigned ints