Changed gave to have in if alert.