add index and ip