After #174, #175, #176 are closed, call these functions in set_all_arrays. Refer to #154 for more details.