modify alert line logic