basic array processing