remove flipIndices from filter since filter never has a concrete length