removing adjacent dupes