key-value transition from item to array