first solution to record the notifier