notify hook