print result of array