added a to index