added hash rekey method