start moving to stl instead of array_view