pruned code