if statement to handle functions vs. string hooks