macro for csv SF with iteration