fixing up barrier counts