adding info to index