refactor for prune