use the old conditition wether to use "distinct" again