special case: had to make th if construction to set environment==null for headpin/