adding metadata index.