add dict compare method