added data syncronization between subsequent tasks