update barrier