added some barriers