add inactive line detection functionality