removed duplication from line checks