is it possible to add const to local_array because this array is not changed in this function?