some simple math stuff.