change version + add select distinct