added a set -e