removed dumb_pow function