Shift to single array manipulation solution