modified return values to return arrays in place of a built string