an attempt to move environment to start of ch 3 #27