add barier functions
add barrier functions