removing repetintions