adding hooks index for adding in function calls