change environmentRef