updated group and key