isDuplicate fix + removed pruning from tree