add index and link