update output in tagging in pmi.py