I didn't think modifying it inside the function would update the array, though I may have been wrong