fixing the usage of env variable