Remove duplicates

I just added a code that remove duplicate errer in my list