simple framework of index