refactoring env value