rewrite pakonb