consolidate two hashes to one