remove dead code in example