refactored numOfDivisors