Move line with parseInt inside 'for' loop

- Move line with parseInt inside 'for' loop