for loop fixed working; had semi colen corrected