Deleted reinitializing of array in loop