get unique_name value directly from the share array
remove unused variable