better print_array