changed two seperate arrays in to a hash