fix for loop.
remove output
remove unused NS