better check for lines