added check to see if line is set