add barrier, too