[add] getHashArray function