refactored ns to run