better color matching for inverted lcs
file reading