add create_array and update gc