added dictionary comparison