core for numbers.py