update lcs and cc