making more use of frame/wrap  array handling