multiple output when nextUpward