add optimization to c is new hosts is same as prev hosts
Merge pull request #1 from smartkode0/master

add optimization to see if  new hosts is same as prev hosts