compressed all GetTP*Ids methods into one