$hash was a private variable, should be a hash