forgot to align the index when accessing the array too