added alert for loss