added alert for first condition