initializing index