working but no barrier implemented