pruning dead code