commit edits for arrays v hashes