add new Barrier...the code still breaks on compiling.