use hash references