LCS fixed function