array order correction