refactor for acceptance of notificationcenter