dumb math in a loop