now output is produced for all lcs