set hashkeys before using it