getting rid of doubles