minor refactor and expand comment