use variable for array