delete unneeded barrier