averageForArray argument order