add indexes to link