old code to add pos to the tokens