updated the options.arrays to be a map