added loop for notification