generate new key only if id is null...