added the prune and print list functions but are UNTESTED