fix environment declaration