arrays changed to key/value pairs