minor changes to barrier.h