added hash function storage