putting trigger in index