use size var for array