* added barrier in the algo