Returning array ref in 'series' rather than assigning to var first