add index, initial things