changed die to exit 3