generic parameter to filter iterator.