accounted for maxSize