improvement to the cond.cc example