fixing the notification proccess