add optimization to c is new hosts is same as prev hosts