flat index