compare ids