change barrier to 1