added nextIfError