add hooks at index