need even write a conditions to barriers