distinct substrings seems to work, needs to be tested