compare resource