delete hook functions