replaced lines like pow_a = pow_a + 1 with pow_a += 1