working on viewproj function ns in setup.js