debugging barrier issue