bgp: use soo in the loop