add check barrier