remove dead_code warnings