converting from list to set
so we only count distinct constructs
minimum 6 items, not 5
trying to be consistent with james' version