first version of index