simplify LinearIndexer