still working to create array from values with shared key