complex: pow optimization