changed clerk to cyclic barrier