changes to TF-IDF command to fix duplicate printing