add key before update