added scope to forvalues, and used Tab in fore & forv