making the API key based on environment variable