array refactor - new code running parallel to old, core functions only