comment diff and lcs methods