change headers from "array of array" to "array of hash" for #3