removed addition ) in generate_array_and_compare