added nasum but still need to refactor into loop