check max size