first try at local_arrays