corr for nested while
beg work on BT propagation