simplify creating of array