adding env_var function