there must be a better solution, but i can't figure it out now
p263-p264 environment