update hash building