add method "getMaxSize"