hash is a struct not class