changed from KeyValuePair to CustomNameValueCollection