change code of mybarrier