print data array on console