use distinct instead of complex group