convert item to array in loop