generate new key after create