while-loop to get rid of doubles