isSameLine() added