add dist to index