- fixed bug, placed arrays outside for loop