minor edits to non unique elements solution