replace FIELDOF with indexing