index adding term script