adjust insert and make_array_naive to use the output of the script I'm working on