my $new_element = {%{$hash_array[$index]}};