added get array routine to print data