changed the way the tid is parsed