added common math
regression works