Removing idx param from td_map and td_filter

Not used in the most common case.