added fxn to strip duplicates