env moved to condition