line comparison