tweak cprint snippet