added tid filteration