setNewId method