update foldnestmax