handle array paints