working on prune, still buggy