I don't think the outer array is needed here either (although I see this is old code)