improve await method in cyclicbarrier