whoops. fix using isDigit as property