...do something like this? if (!bc[ith].available ()) bc.erase (std::remove (bc.begin (), bc.end (), bc[ith])); (from the tree library example) Thanks for the great tool. -- Mike