few tweaks in c example