altered transaction read in so writes only index 0 of array