added noduplicates to backup_nested_element