working on list in place

making copy of the list to cycle through so that occ.remove(o) works on
duplicates.