note environment function