forgot that environment variable was used further down the script