removed distinct clause