Last change did not account for array's

updated the code to account for array's