returning after errors