added another else if, and alert