simplify $var->{..}->{..} to $var->{..}{..}