output array rather than implode to string