optimized the notification