update global key