fixed the array parser