Updated code to reflect new arrays

updated the code to reflect the new arrays at line 66