set MaxSize