arrays correction

arrays correction as advised by instructor