simplify array