barrier synch code revision to test