i couldn'y understand how dublicate values were created but i realised that there were dublicates by running it on my phone so that was the only way i could erase them!