fixed the array variables