prints out array