PLA-984 changed output to array