fixed bug in array output