use barrier instead of join
take some printfs away
fix barrier error