added barrier