minor fix - added distinct clause on problem 28