environment as global parameter