redundant code pruning