add an index to speed up tv processing