small modification of PosTagger