refactored env computing