changed method name to getKVPairs()