finished compare ids script