barrier implemented to nodes syncronization