still hacky solution to elim-dupes,
but added notes for better solution,
also simple implementation of the "last" (vs first)